/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package xyz.qduwo.util;

import java.sql.Timestamp;

/**
 *
 * @author gen3
 */
public class CommonUtils {

    /**
     * 将类型转换为java.sql.date
     * @param date
     * @return
     */
    public static Timestamp transToSqlDate(java.util.Date date){
        return new Timestamp(date.getTime());
    }
}
